import request from '@/utils/request'

export function getChildAll() {
  return request({
    url: '/pub/dictionary/childAll',
    method: 'get'
  })
}
export function getParentAll() {
  return request({
    url: '/pub/dictionary/parentAll',
    method: 'get'
  })
}
export function getChildById(data) {
  return request({
    url: '/pub/dictionary/childById',
    method: 'post',
    data
  })
}
export function getProvince() {
  return request({
    url: '/pub/administrative/provinceAll',
    method: 'get'
  })
}
export function getCityByCode(data) {
  return request({
    url: '/pub/administrative/cityByCode',
    method: 'post',
    data
  })
}
export function getHomeInfo() {
  return request({
    url: '/pub/home',
    method: 'get'
  })
}
// 专场接口
export function getSubject() {
  return request({
    url: '/pub/subject',
    method: 'get'
  })
}
